home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 9 / AMUG BBS in a Box Volume IX (August 1993) (MacWizards).iso / Files / Prog / B-C / CdevTester.cpt / General.h < prev    next >
Encoding:
Text File  |  1993-02-05  |  906 b   |  44 lines  |  [TEXT/KAHL]

  1. //
  2. //    General Header
  3. //
  4.  
  5. #define __CDEVTESTER__
  6.  
  7. #define    NIL                    0L
  8. #define    NIL_MOUSE_REGION    0L    
  9. #define MIN_SLEEP            0L
  10. #define    MAX_SLEEP            0xFFFFFFFF
  11. #define    REMOVE_ALL_EVENTS    0
  12. #define    INACTIVE            255
  13. #define ACTIVE                0
  14. #define    RESUMING            1
  15. #define    SUSPEND_RESUME_BIT    0x0001
  16. #define NO_DRAG                0x80008000
  17. #define UNIMPLEMENTED        0xA89F
  18.  
  19. #define RES_ID                128
  20. #define    DRAG                4
  21.  
  22. /* Efficient C versions of HiWord and LoWord Traps                */
  23.  
  24. #define        HiShort(longNum)    (short)(((longNum) >> 16) & 0xFFFF)
  25. #define        LoShort(longNum)    (short)((longNum) & 0xFFFF)
  26.  
  27.  
  28.  
  29. enum    { APPLE_MENU=RES_ID, FILE_MENU, EDIT_MENU};
  30. enum    { ABOUT=1 };
  31. enum    { OPEN=1,CLOSE, QUIT=4 };
  32. enum    { UNDO=1,CUT=3, COPY, PASTE, CLR };
  33.  
  34. typedef struct
  35. {    int numOfRects;
  36.     Rect theRect[];
  37. } **nrctHandle;
  38.  
  39. typedef struct
  40. {    unsigned int softmask;
  41.     unsigned int hardmask;
  42. } **machHandle;
  43.  
  44. pascal long cdev(int,int,int,int,EventRecord*,long,DialogPtr);